package com.design.cjm.behavioral.command.example1;

/**
 * @Author: Jie Ming Chen
 * @Date: 2018/9/28
 * @Version 1.0
 */
public class LightOffCommand implements Command{

    Light light;

    public LightOffCommand(Light light) {

        this.light = light;
    }

    @Override
    public void execute() {

        light.off();
    }
}
